home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.1 / Examples1 / locale / SelfLoad / smakefile < prev    next >
Encoding:
Makefile  |  1996-02-12  |  747 b   |  32 lines

  1. .cd.h:
  2.     CatComp $< CFILE $>_strings.h
  3.  
  4. .asm.o:
  5.     asm $<
  6.  
  7. APP    = helloworld
  8.  
  9. LIBS    = LIB:sc.lib LIB:amiga.lib
  10. STARTUP    = LIB:c.o
  11.  
  12. LFLAGS    = smallcode smalldata nodebug noicons
  13. CFLAGS    = structureequivalence nostackcheck
  14.  
  15. OFILES    = $(APP).o catalog.o getcatalogstr.o
  16. CFILES    = $(APP).c catalog.c
  17. AFILES    = getcatalogstr.asm
  18.  
  19. all: $(APP) helloworld.catalog
  20.  
  21. $(APP):    $(OFILES)
  22.     slink FROM $(STARTUP) $(OFILES) LIB $(LIBS) $(MYLIBS) TO $(APP) $(LFLAGS)
  23.  
  24. helloworld.o: helloworld.c helloworld_strings.h
  25. helloworld_strings.h: helloworld.cd
  26.  
  27. helloworld.catalog: translations/deutsch/helloworld.ct helloworld.cd
  28.     CatComp helloworld.cd TRANSLATION translations/deutsch/helloworld.ct CATALOG $@
  29.     -Makedir catalogs
  30.     -Makedir catalogs/deutsch
  31.     Copy $@ catalogs/deutsch
  32.